//
//  GeoFeature.m
//  Trackit
//
//  Created by yaodaobin on 2017/4/18.
//  Copyright © 2017年 yaodaobin. All rights reserved.
//

#import "GeoFeature.h"

@implementation GeoFeature

- (instancetype)initWithDictionary:(NSDictionary *)dictionary {
    self = [super init];
    if (self) {
        self.properties = [NSMutableDictionary dictionary];
        self.type = [CommonFunction getValueFromDic:dictionary withKey:@"type"];        
        self.geoMetry = [[GeoMetry alloc] initWithDictionary:dictionary[@"geometry"]];
        self.properties = dictionary[@"properties"];
        
    }
    return self;
}

- (NSMutableDictionary *)properties {
    if (!_properties) {
        _properties = [NSMutableDictionary dictionary];
    }
    return _properties;
}

@end
